package com.hsnn.medstgmini.base.std.model;

public enum HospLevel {

	level1Grade1("1", "一级甲等"), level1Grade2("2", "一级乙等"), level1Grade3("3",
			"一级丙等"), level2Grade1("4", "二级甲等"), level2Grade2("5", "二级乙等"), level2Grade3(
			"6", "二级丙等"), level3Grade1("7", "三级甲等"), level3Grade2("8",
			"三级乙等"), level3Grade3("9", "三级丙等");

	private String key;
	private String value;

	private HospLevel(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public static String getName(String key) {
		if (key != null && !"".equals(key)) {
			for (HospLevel hsopLevel : HospLevel.values()) {
				if (key.equals(hsopLevel.key)) {
					return hsopLevel.value;
				}
			}
		}
		return "";
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
